<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>商之联-商家后台管理系统</title>
  <meta name="description" content="这是一个 table 页面">
  <meta name="keywords" content="table">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="{:C('ADMIN_IMG')}favicon.png"> <link rel="apple-touch-icon-precomposed" href="{:C('ADMIN_IMG')}app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="{:C('ADMIN_CSS')}amazeui.min.css"/>
  <link rel="stylesheet" href="{:C('ADMIN_CSS')}admin.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->
<!-- header start-->

<include file="Public:header"/>

<!-- header end-->

<div class="am-cf admin-main">
 <!-- sidebar start -->
   <include file="Public:menu"/>
  <!-- sidebar end -->
  
  <!-- content start -->
  <div class="admin-content">
    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">首页</strong> / <small>充值</small></div>
    </div>

    <hr>

    <div class="am-g">

      <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">

      </div>

      <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
        <form class="am-form am-form-horizontal" method="post" action="{:U('ShopAccount/updateAccount')}">
         
          <div class="am-form-group">
            <label for="user-name" class="am-u-sm-3 am-form-label">商家名称：</label>
            <div class="am-u-sm-9">
              <input type="text" name="companyname" value="{$shopname}"readonly="readonly" />
            </div>
          </div>
          
           <div class="am-form-group">
            <label for="user-email" class="am-u-sm-3 am-form-label">支付方式</label>
            <div class="am-u-sm-9">
              <select name="payment" class="payment" disabled>
                  <option value="{$payname}">{$payname}</option>
              </select>
            </div>
          </div>


          <div class="am-form-group">
            <label for="user-name" class="am-u-sm-3 am-form-label">金额：</label>
            <div class="am-u-sm-9">
              <input type="text" name="account" value="{$account['account']}" disabled/>
            </div>
          </div>
            
          <div class="am-form-group">
            <label for="user-name" class="am-u-sm-3 am-form-label">类型：</label>
            <div class="am-u-sm-9">
              
              <input type="radio" name="process_type" value={$account['process_type']} 
              <if condition="$account.process_type eq 0"> checked="1"</if>  disabled /> 充值
              <input type="radio" name="process_type" value={$account['process_type']}
              <if condition="$account.process_type eq 1"> checked="1"</if>  disabled /> 提现
            </div>
          </div>

         
          
          <div class="am-form-group">
            <label for="user-name" class="am-u-sm-3 am-form-label">到款状态：</label>
            <div class="am-u-sm-9">
              <if condition="$account.admin_check neq 1">
              <input type="radio" name="admin_check" value="0"
                <if  condition="$account.admin_check eq 0 "> checked=1</if> />未审核

              <input type="radio"  name="admin_check" value="2"
              <if  condition="$account.admin_check eq 2 "> checked=1</if> />审核中
              </if>

              <input type="radio"  name="admin_check" value="1" <if  condition="$account.admin_check eq 1 "> checked=1</if> />已审核
             
             
            </div>
          </div>


          <div class="am-form-group">
            <div class="am-u-sm-9 am-u-sm-push-3">
              <button type="submit" class="am-btn am-btn-primary" onclick=check()>提交</button>
            </div>
          </div>
          
          <input  name="shopid" value="{$account['shopid']}" type="hidden" />
          <input  name="accountid" value="{$account['id']}" type="hidden" />
        </form>
      </div>
    </div>
  </div>
  <!-- content end -->
</div>
<footer>
  <hr>
  <p class="am-padding-left">© 2014 商之联.</p>
</footer>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}polyfill/rem.min.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}polyfill/respond.min.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="{:C('ADMIN_JS')}jquery.min.js"></script>
<script src="{:C('ADMIN_JS')}amazeui.min.js"></script>
<!--<![endif]-->
<script src="{:C('ADMIN_JS')}app.js"></script>
<script type="text/javascript">
  function check(){
    var $account=$('#account');
    var $payment=$('.payment');
    if(  $account.val() =='' ||  $payment.val() ==''){
      alert('请输入金额和支付类型');
      event.preventDefault();
      return false;
    }
    
  }
</script>
<script type="text/javascript">
  $(function(){
       var modultname="ShopAccount";

       $('.'+modultname).addClass('am-in');
});
</script>
</body>
</html>
